import config from "@/config"
console.log(config)
//系统路由
const routes = [
	// {
	// 	name: "layout",
	// 	path: "/",
	// 	component: () => import(/* webpackChunkName: "layout" */ '@/layout'),
	// 	redirect: config.DASHBOARD_URL || '/dashboard',
	// 	children: []
	// },
	{
		path: "/",
		component: () => import(/* webpackChunkName: "login" */ '@/views/staff/index'),
		meta: {
			title: "首页"
		}
	},
	{
		path: "/user",
		component: () => import(/* webpackChunkName: "login" */ '@/views/staff/user'),
		meta: {
			title: "个人中心"
		}
	},
	{
		path: "/login",
		component: () => import(/* webpackChunkName: "userRegister" */ '@/views/login/index'),
		meta: {
			title: "登录"
		}
	},
	{
		path: "/task",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/staff/task'),
		meta: {
			title: "任务列表"
		}
	},
	{
		path: "/salary",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/staff/salary'),
		meta: {
			title: "工资"
		}
	}
]

export default routes;
